<?php
use think\facade\Route;

//中餐学院的路由
Route::group('zmt',function (){
    Route::post('login','web/User/login');
    Route::post('register','web/User/register');
    Route::post('Sms','web/User/Sms');
    Route::post('upload','web/Upload/uploadLocal');
    Route::post('Qiniu','web/Upload/uploadToQiniu');

    Route::get('b_index','web/Banner/index');
    Route::get('f_index','web/Fl/index');
    Route::get('s_index','web/Spu/index');
    Route::get('spu','web/Spu/getGoodsInfo');

});

Route::group('admin',function (){
    Route::get('addressindex','web/User/addressindex');
    Route::post('add','web/User/add');
    Route::post('address','web/User/address');
    Route::post('ressupdate','web/User/ressupdate');
    Route::post('delete','web/User/delete');
    Route::post('money','web/Money/addMoney');
    Route::get('index','web/User/index');
    Route::get('index_money','web/Money/getTransactionLogs');
})->middleware(\api\web\middleware\CheckToken::class);


Route::group('order',function (){
    Route::post('index','web/Order/order');
    Route::post('pay','web/Pay/walletPay');
    Route::post('wuliu','web/Order/wuliu');

})->middleware(\api\web\middleware\CheckToken::class);